import request from '@/utils/request'

// 查询日行情列表
export function listMarket(query) {
  return request({
    url: '/binance/market/list',
    method: 'get',
    params: query
  })
}

// 查询日行情详细
export function getMarket(code) {
  return request({
    url: '/binance/market/' + code,
    method: 'get'
  })
}

// 新增日行情
export function addMarket(data) {
  return request({
    url: '/binance/market',
    method: 'post',
    data: data
  })
}

// 修改日行情
export function updateMarket(data) {
  return request({
    url: '/binance/market',
    method: 'put',
    data: data
  })
}

// 删除日行情
export function delMarket(code) {
  return request({
    url: '/binance/market/' + code,
    method: 'delete'
  })
}
